/**
 * 
 */
package co.fitstart.mobile.entity.trading;

import java.util.HashMap;
import java.util.Map;

/**
 * @author downpour
 *
 */
public class PaymentPrepare {
    
    private String orderNo;
    
    private String userId;
    
    private String channel;
    
    private Map<String, String> extras;
    
    /**
     * The default constructor
     */
    public PaymentPrepare() {
        
    }
    
    /**
     * 
     * @param channel
     * @param orderNo
     * @param userId
     */
    public PaymentPrepare(String channel, String orderNo, String userId) {
        this.channel = channel;
        this.orderNo = orderNo;
        this.userId = userId;
        this.extras = new HashMap<String, String>();
    }
    
    /**
     * 
     * @param key
     * @param value
     * @return 
     */
    public PaymentPrepare addParameter(String key, String value) {
        this.extras.put(key, value);
        return this;
    }

    /**
     * @return the orderNo
     */
    public String getOrderNo() {
        return this.orderNo;
    }

    /**
     * @return
     */
    public String getUserId() {
        return userId;
    }

    /**
     * @return the channel
     */
    public String getChannel() {
        return this.channel;
    }

    /**
     * @return the extras
     */
    public Map<String, String> getExtras() {
        return this.extras;
    }

    /**
     * @param orderNo the orderNo to set
     */
    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    /**
     * @param userId the userId to set
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * @param channel the channel to set
     */
    public void setChannel(String channel) {
        this.channel = channel;
    }

    /**
     * @param extras the extras to set
     */
    public void setExtras(Map<String, String> extras) {
        this.extras = extras;
    }

}
